package demo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @date: 2023/2/25 10:17
 */
@FeignClient(value = "feign-nacos-1")
public interface OrderService {

    @GetMapping("/order/deduct")
    boolean deduct(@RequestParam("sum") Integer sum);
}
